import authRequest from 'supports/requests/authRequest'

export function goldRounds() {
  return authRequest('gold/rounds')
}

export function goldProducts(data) {
  return authRequest('gold/products', { data: data })
}

export function createGoldCharge(data) {
  return authRequest('gold/charges', {method: 'post', data: data})
}

export function transferGoldBeans(data) {
  return authRequest('gold/beans/transfer', {method: 'post', data: data})
}

export function stormSupport(data) {
  return authRequest('users/storm/support', {method: 'post', data: data})
}


export function transferGoldCoins(data) {
  return authRequest('gold/coins/transfer', {method: 'post', data: data})
}

export function goldProductBuying(data) {
  return authRequest('gold/records', {method: 'post', data: data})
}

export function goldRecordDeleting(id) {
  return authRequest('gold/records/' + id, {method: 'delete'})
}


export function goldProductReselling(id,data) {
  return authRequest('gold/records/' + id + '/resell', {method: 'post', data: data})
}

export function goldProductBatchPaying(data) {
  return authRequest('gold/records/batch/pay', {method: 'post', data: data})
}

export function goldProductBatchReselling(data) {
  return authRequest('gold/records/batch/resell', {method: 'post', data: data})
}

export function goldProductTaking(data) {
  return authRequest('gold/records/take', {method: 'post', data: data})
}

export function goldProductSplitting(data) {
  return authRequest('gold/records/split', {method: 'post',data})
}

export function goldCoinsList(data) {
  return authRequest('gold/coins', { data: data})
}

export function goldBeansList(data) {
  return authRequest('gold/beans', {data: data})
}

export function goldCashesList(data) {
  return authRequest('gold/cashes', {data: data})
}

export function goldRecordsList(data) {
  return authRequest('gold/records', {data: data})
}

export function goldCoinWithdrawing(data) {
  return authRequest('withdraws', { method: 'post', data: data })
}

export function goldRecordsCount() {
  return authRequest('gold/records/count')
}

export function goldCoinWithdrawByBank(data) {
  return authRequest('withdraws/mybank', { method: 'post',data:data })
}

export function goldStormBudget(data) {
  return authRequest('gold/records/budget', { method: 'post',data:data })
}

export function goldStormEnter(data) {
  return authRequest('gold/records/enter', { method: 'post',data:data })
}

export function goldStormChecking(data) {
  return authRequest('gold/records/check', { method: 'post',data:data })
}

export function buyingGoldCashes(data) {
  return authRequest('gold/cashes/buy', { method: 'post',data:data })
}

export function goldWastesList(data) {
  return authRequest('gold/wastes',{data: data})
}

export function goldWastesSubsidies(data) {
  return authRequest('gold/wastes/subsidy', { method: 'post',data:data })
}

export function goldWastesOrders(data) {
  return authRequest('gold/wastes/order', { method: 'post',data:data })
}

export function goldEndingList(data) {
  return authRequest('gold/records/ending',{data: data})
}

export function goldEndingSubsidies(data) {
  return authRequest('gold/records/subsidy', { method: 'post',data:data })
}

export function goldEndingOrders(data) {
  return authRequest('gold/records/order', { method: 'post',data:data })
}





